Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test verifying only JWT introspection can be used and update the docs #17953

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

sberyozkin
Copy link
Member

Added a test verifying that the JWT introspection only can be forced and updated the docs with a new sub section about controlling the verification and introspection processes in the service docs; also removed the small section about the introspection only I added with one of the latest PRs (I found it was mostly repeating what was said in other sub sections) and updated the newly added section with the info about TokenIntrospection injection.

@pedroigor Hi Pedro, how does it look to you ? The only minor concern is that the JWT introspection is forced indirectly (by configuring the introspection path only) but I was hesitant to introduce a new property (force-jwt-introspection etc) since we already have allow-jwt-introspection (so that the users can set this property to false and disable the introspection).

I suppose we can add force-jwt-introspection as well and doc that in this case allow-jwt-introspection property will be ignored. However in case of Keycloak it is very easy to point to the introspection endpoint. So probably we can avoid adding a new property for now and add force-jwt-introspection if it will be hard to find out for some other providers the address of this endpoint so that it can be auto-discovered...

Let me know what you prefer please

@sberyozkin sberyozkin force-pushed the oidc_jwt_introspection branch from e3ce4d5 to 2cb1937 Compare June 18, 2021 13:47
@sberyozkin
Copy link
Member Author

@gastaldi Can you please consider reviewing this PR ? Pedro may be a bit busy - here only a test added and docs updated and some log statements are added (just now to let users see why the introspection has failed), no real OIDC code updates - I'd consider adding a new property (see the description) later if someone requests it.

Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sberyozkin
Copy link
Member Author

@gastaldi thanks

@sberyozkin
Copy link
Member Author

@pedroigor I think we are OK here - the introspection can be easily forced for JWT tokens issued from KC - we can certainly add a new property if ever required

@sberyozkin sberyozkin merged commit 608c541 into quarkusio:main Jun 18, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jun 18, 2021
@sberyozkin sberyozkin deleted the oidc_jwt_introspection branch June 18, 2021 17:02
@gsmet gsmet modified the milestones: 2.1 - main, 2.0.0.Final Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants